import request from '@/utils/request'

// 查询用户抽签记录列表
export function listLuckUser(query) {
  return request({
    url: '/business/luckUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户抽签记录详细
export function getLuckUser(id) {
  return request({
    url: '/business/luckUser/' + id,
    method: 'get'
  })
}

// 新增用户抽签记录
export function addLuckUser(data) {
  return request({
    url: '/business/luckUser',
    method: 'post',
    data: data
  })
}

// 修改用户抽签记录
export function updateLuckUser(data) {
  return request({
    url: '/business/luckUser',
    method: 'put',
    data: data
  })
}

// 删除用户抽签记录
export function delLuckUser(id) {
  return request({
    url: '/business/luckUser/' + id,
    method: 'delete'
  })
}
